<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>请求方式</title>
</head>
<body>
<form  action="http://localhost:8080/get" method="get">
    姓名：<input type="text" name="username"><br>
    密码：<input type="text" name="password"><br>
    <input type="submit" value="提交get"><br>
</form>
<br><br><br>
<form  action="http://localhost:8080/post" method="post">
    姓名：<input type="text" name="username"><br>
    密码：<input type="text" name="password"><br>
    <input type="submit" value="提交post"><br>
</form>

</body>
</html>